package com.vip.buycart.bl.impl;

import java.util.List;

import com.vip.buycart.bl.ProductManager;
import com.vip.buycart.dao.ProductDAO;
import com.vip.buycart.entity.Product;
import com.vip.buycart.exception.RecordNotFoundException;
import com.vip.framework.generic.GenericBlImpl;

public class ProdcutManagerImpl extends GenericBlImpl<Product> implements ProductManager{

    private ProductDAO productDao;
 
    public ProductDAO getProductDao() {
        return productDao;
    }

    public void setProductDao(ProductDAO productDao) {
        this.productDao = productDao;
    }


    public List<Product> getProductByIds(Long... ids)
            throws RecordNotFoundException {
        return productDao.getProductByIds(ids);
    }

    public Product getProductById(Long id) throws RecordNotFoundException {
        return productDao.getProductById(id);
    }

}
